<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 1/3
      const a = 0.1;
      const b = 0.2;
      const c = 0.3;

      console.log(+(a + b).toFixed(2) === c);

      // console.log(a.toFixed(30));
      // console.log(b.toFixed(30));
      // console.log(c.toFixed(30));
    </script>
  </body>
</html>
